package app.server.project.main.service.db.entity.cfg;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;
import org.hibernate.annotations.Comment;

@Data
@Entity(name = "task_cfg")
@TableName("task_cfg")
@Comment(value = "任务配置表")
public class TaskCfgEntity {

    @Id
    @Column(name = "id")
    @Comment("类型id")
    @TableId("id")
    private int id;

    @Column(name = "name")
    @Comment("任务名称")
    @TableField("name")
    private String name;

    @Column(name = "race_id")
    @Comment("赛道id")
    @TableField("race_id")
    private int raceId;

    @Column(name = "race_val")
    @Comment("代币数量")
    @TableField("race_val")
    private long raceVal;

    @Column(name = "energy")
    @Comment("体力值奖励")
    @TableField("energy")
    private long energy;


    @Column(name = "order_index")
    @Comment("排序字段")
    @TableField("order_index")
    private int orderIndex;


    @Column(name = "verify_type")
    @Comment("校验处理器")
    @TableField("verify_type")
    private int verifyType;

    @Column(name = "url")
    @Comment("分享链接")
    @TableField("url")
    private String url;

    @Column(name = "title")
    @Comment("标题")
    @TableField("title")
    private String title;


    @Column(name = "des")
    @Comment("描述")
    @TableField("des")
    private String des;

    @Column(name = "img")
    @Comment("图片")
    @TableField("img")
    private String img;

}
